import request from '@/utils/request'

// 获取设备物料下拉列表
export function getEquipmentMaterialList() {
  return request({
    url: '/operation/web/operationWarehouseManagement/equipmentMaterialList',
    method: 'get'
  })
}

// 获取仓库类型下拉列表
export function getWarehouseTypeList() {
  return request({
    url: '/operation/web/operationWarehouseManagement/warehouseTypeList',
    method: 'get'
  })
}

// 查询仓库管理列表
export function listWarehouseManagement(params) {
  return request({
    url: '/operation/web/operationWarehouseManagement/list',
    method: 'get',
    params
  })
}

// 获取仓库管理详细信息
export function getWarehouseManagementDetail(id) {
  return request({
    url: `/operation/web/operationWarehouseManagement/${id}`,
    method: 'get'
  })
}

// 新增仓库管理
export function addWarehouseManagement(data) {
  return request({
    url: '/operation/web/operationWarehouseManagement',
    method: 'post',
    data
  })
}

// 修改仓库管理
export function updateWarehouseManagement(data) {
  return request({
    url: '/operation/web/operationWarehouseManagement',
    method: 'put',
    data
  })
}

// 删除仓库管理
export function deleteWarehouseManagement(ids) {
  return request({
    url: `/operation/web/operationWarehouseManagement/${ids}`,
    method: 'delete'
  })
}